package cn.tedu.myweb.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableId(value = "did")
    private Integer did;
    @TableField(value = "username")
    private String username;
    @TableField(value = "phone")
    private String phone;
    @TableField(value = "email")
    private String email;
    @TableField(value = "password")
    private String password;
    @TableField(value = "reg_time")
    private LocalDateTime regTime;
    @TableField(value = "last_time")
    private LocalDateTime lastTime;
    @TableField(value = "transfer_times")
    private Integer transferTimes;
    @TableField(value = "transferred_times")
    private Integer transferredTimes;
    @TableField(value = "up_times")
    private Integer upTimes;
    @TableField(value = "down_times")
    private Integer downTimes;
    @TableField(value = "gmt_create")
    private LocalDateTime gmtCreate;
    @TableField(value = "gmt_modified")
    private LocalDateTime gmtModified;
    @TableField(value = "status")
    private Integer status;
    @TableField(value = "state")
    private Integer state;
    @TableField(value = "nick")
    private String nick;
    @TableField(value = "pic_url")
    private String picUrl;
    @TableField(value = "birthday")
    private String birthday;
}
